package com.yiibai.tutorial.javabasic.variable;

class Bike {
	void run() {
		System.out.println("running");
	}
}

public class Splender extends Bike {
	void run() {
		System.out.println("running safely with 60km");
	}

	public static void main(String args[]) {
		Bike b = new Splender();// upcasting -向上转换
		b.run();
	}
}
